<!--
 * @Author: your name
 * @Date: 2022-01-16 01:23:37
 * @LastEditTime: 2022-01-16 01:39:47
 * @Description:
-->
<script lang="ts" setup>
import { onMounted } from 'vue'
import { useRoute, useRouter } from 'vue-router'
onMounted(() => {
  const route = useRoute()
  const router = useRouter()
  const { params, query } = route
  const { path } = params
  router.replace({ path: '/' + path, query })
})
</script>

<script lang="ts">

export default {
  render: function (h:any) {
    return h() // avoid warning message
  }
}
</script>
